﻿using FluentNHibernate.Mapping;

namespace Genesis.Persistence.Mapping
{

    using Genesis.Domain;

    public class ForumMap : ClassMap<Forum>
    {

        public ForumMap()
        {

            Id(x => x.Id);
            Map(x => x.Sequence);
            Map(x => x.Title);
            Map(x => x.Description);
            Map(x => x.IsModerated);
            Map(x => x.IsEnabled);
            Map(x => x.IsVisible);
            HasMany<Forum>(x => x.Forums);
            HasMany<Moderator>(x => x.Moderators);
            HasMany<Thread>(x => x.Threads);

        }

    }

}